for x in "Python":
    print(x)
print("----------")

for x in ["a", "b", "c"]:
    print(x)
print("----------")

for x in range(5):
    print(x)
print("----------")

for x in range(0, 10, 2):
    print(x)
# Thing to know: range doesn't return a list
print(range(5), type(range(5)))  # this is not a list. this is
# <class 'range'> is an iterable object in Python
# which takes up little memory than lists
print([1, 2, 3, 4, 5])

print("for else statement---------")
names = ["AJohn", "Mary"]
for name in names:
    if name.startswith("J"):
        print("J Found")
        break
    else:
        print(f"{name} doesn't start with J")
else:  # This will run if the statement "break didn't."
    print("J is not found in names")
    print("the statement 'break' didn't run")
